package util;

import javax.mail.*;

public class MailAuth extends Authenticator{

	String name;
	String password;
	
	public MailAuth(String name,String password)
	{
		this.name=name;
		this.password=password;
		this.getPasswordAuthentication();
	}
	
	@Override
	protected PasswordAuthentication getPasswordAuthentication()
	{
		return new PasswordAuthentication(name, password);
	}
}
